package com.dq.util;

import android.content.Context;
import android.os.Environment;

import java.io.File;

public class Constant {

    private static String PATH = Environment.getExternalStorageDirectory()
            .getAbsolutePath() + "/";

    public static String getDCIM() {
        return getPath() + "DCIM/";
    }

    public static String getPackageName(Context c) {
        String packagePath = getPath() + SystemUtil.getPackageName(c) + "/";
        File file = new File(packagePath);
        if (!file.exists()) {
            file.mkdirs();
        }
        return packagePath;
    }

    public static String getPath() {
        return PATH;
    }

    public static void systemPath(Context c){
        String path1 = Environment.getExternalStorageState();
        ILog.e("path1:"+path1);
        String path2 = Environment.getDataDirectory().getAbsolutePath();
        ILog.e("path2:"+path2);
        String path3 = Environment.getDownloadCacheDirectory().getAbsolutePath();
        ILog.e("path3:"+path3);
        String path4 = Environment.getRootDirectory().getAbsolutePath();
        ILog.e("path4:"+path4);
        String path5 = Environment.getExternalStorageDirectory().getAbsolutePath();
        ILog.e("path5:"+path5);
        String path6 = c.getCacheDir().getAbsolutePath();
        ILog.e("path6:"+path6);
    }
}